#include "widget.h"
#include "ui_widget.h"
#include <QVBoxLayout>
#include <QTabWidget>
#include <QTextEdit>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    QVBoxLayout* vl = new QVBoxLayout(this);
    QTabWidget* tw = new QTabWidget(this);
    vl->addWidget(tw);

    QTextEdit* te1 = new QTextEdit("111",tw);
    QTextEdit* te2 = new QTextEdit("222",tw);
    QTextEdit* te3 = new QTextEdit("333",tw);
    tw->addTab(te1, "1.c");
    tw->addTab(te2, "2.c");
    tw->addTab(te3, "3.c");
}

Widget::~Widget()
{
    delete ui;
}
